package staticInnerclass;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-05-15
 * Time: 12:04
 */
class Outclass{
    public int a;
    static int b;
    public void fun0(){
        System.out.println("执行外部类的方法");
    }
    static void fun1(){
        System.out.println("执行外部类的静态方法");
    }
    static class Innerclass{
        //Outclass outclass = new Outclass();
        public int c;
        public int d;
        public void fun2(Outclass outclass){
            outclass.a=1;
            b=10;
            System.out.println(outclass.a);
            System.out.println(b);
            fun1();
        }
    }
}
public class Test {
    public static void main(String[] args) {
        Outclass.Innerclass innerclass = new Outclass.Innerclass();
        innerclass.fun2(Outclass outclass);
    }

}
